const { log } = require('console')
const fs = require('fs')
// fs.writeFile('./demo.txt','hello,i am your father',err => {
//     console.log(err);
// })
//读取文件

fs.readFile('./demo.txt',(err,data) => {
    console.log(err);
    console.log(data.toString());
})